package com.yongqi.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.yongqi.pub.MySQLBackUpUtil;

@Component
public class MySQLBackUp {
	
	@Scheduled(cron="0 09 12 * * *")
	public void cron() throws Exception{
		System.out.println("MysqlBackUp Start");
		MySQLBackUpUtil.databaseBackUp("123.206.113.157", "damionew", "AragakiYui@3306", "3306", "design", "design.sql", ".\\src\\main\\resources");
		System.out.println("MysqlBackUp End");
	}
}
